package day10;

public class TestVarargs {
/*	public static void show(String[] strs){
		System.out.println(strs.length);
	}
	public static void main(String[] args) {
		show(new String[]{});
		show(new String[]{"aaa"});
		show(new String[]{"aaa", "bbb"});
	}*/
	public static void show(String... strs){
		System.out.println(strs.length);
	}
	/*public static void show1(String...strings , String...strings2 ){
		
	}*/
	public static void show2(String str1, String...strings){
		
	}
	public static void m(){
		System.out.println("TestVarargs.m()");
	}
	public static void m(String s){
		System.out.println("TestVarargs.m(String s)");
	}
	public static void m(String...s){
		System.out.println("TestVarargs.m(String...s)");
	}
	public static void m(String str1, String...s){
		System.out.println("TestVarargs.m(String str1, String...s)");
	}
	
	public static void main(String[] args) {
		show();
		show("aaa");
		show("aaa", "bbb");
		m();
		m("aaa");
		m(new String[]{"aaa","bbb"});
		//m("aaa", "bbb");
	}
}
